<%@ page contentType="text/html; charset=UTF-8" language="java"
	pageEncoding="UTF-8"%>
<%@ include file="/corp/include/taglibs.jsp"%>
<html>
	<head>
		<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>公共消息</title>
		<link href="${ctx }/css/css.css" rel="stylesheet"
			type="text/css">	
<script>
var __timerInstance;
var __title
var HtmlMessageBox=<mytag:messageBox />;
function showMessageBox()
{
	__title=document.all("titleid");
	var layer1=document.all("layer1");
	var layer2=document.all("layer2");
	layer1.innerHTML=HtmlMessageBox.message;
	__title.innerHTML="提示信息";
	putForwardUrl(layer2);
	if(HtmlMessageBox.enabledTimer)
	{
		__timerInstance= window.setInterval("intervalForward()",1000);
	}
	//var contentWin = new Window({className: "alphacube", maximizable: false,minimizable:false,closable:false, resizable: true,destroyOnClose: true})
	//contentWin.setContent('retuMsg', true, true)
	//contentWin.showCenter(true);	
	
}
function putForwardUrl(layer2)
{
	var str="<ol>";
	for(var i=0;i<HtmlMessageBox.forwardUrl.length;i++)
	{
		str+="<li><a href='"+HtmlMessageBox.forwardUrl[i]+"'>"+HtmlMessageBox.linkMsg[i]+"</a></li>";
	}
	str+="</ol>";
	layer2.innerHTML=str;
}
function intervalForward()
{
	if(HtmlMessageBox.timer>0)
	{
		__title.innerHTML="提示信息："+HtmlMessageBox.timer+"自动转向";
		HtmlMessageBox.timer--;
	}
	else
	{
		open(HtmlMessageBox.forwardUrl[0],HtmlMessageBox.targetName);
		window.clearInterval(__timerInstance);
	}
}
</script>
<style type="text/css">
<!--
/*操作返回信息*/
.h1 {  font-size:16px; 
  font-weight: bold;
  color: #303030;
}
 /*提示文字*/
.h2 {  font-size:12px; 
  color: #303030;
}
-->
</style>
<link href="${ctx }/css/css.css" rel="stylesheet" type="text/css">
<link href="${ctx }/js/windows1.3/themes/alphacube.css" rel="stylesheet" type="text/css"/>
<link href="${ctx }/js/windows1.3/themes/default.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="${ctx }/js/windows1.3/javascripts/prototype.js"> </script>
<script type="text/javascript" src="${ctx }/js/windows1.3/javascripts/window.js"> </script>
<script language="javascript">
var layer= parent.document.getElementById("Layer2");
if(layer!=null){

parent.document.getElementById("Layer2").style.display="block";
layer.style.top=(parent.document.body.clientHeight/2)-150+parent.document.body.scrollTop;
layer.style.left=(parent.document.body.clientWidth/2)-250+parent.document.body.scrollLeft;
layer.style.width=438;
layer.style.height=230;
}
</script>
</head>
<body onload="showMessageBox();" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="message">
  <div style="height:150; width:100%"></div>
<table id="Table_01" width="433" height="227" border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td>
			<img src="${ctx}/images/common/ts_01.gif" width="9" height="27" alt=""></td>
		<td height="27" background="${ctx}/images/common/ts_02.gif"><span class="h2" id="titleid">信息提示:</span></td>
		<td>
			<img src="${ctx}/images/common/ts_03.gif" width="10" height="27" alt=""></td>
	</tr>
	<tr>
		<td width="9" background="${ctx}/images/common/ts_04.gif"> </td>
		<td width="414" height="192" bgcolor="#EEF5FD"><table width="250" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="91"><img src="${ctx}/images/common/tishi_04.gif" width="81" height="89"></td>
            <td width="209"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="35" class="h1"><div class="msgHead" >操作返回信息:</div>
					<div id="layer1" class="msg" style="height:30px;"></div>
					<hr>
					<div id="layer2" class="urlLink" style="height:30px;"></div></td>
                </tr>
               
            </table></td>
          </tr>
        </table></td>
		<td width="10" background="${ctx}/images/common/ts_06.gif">&nbsp;</td>
	</tr>
	<tr>
		<td>
			<img src="${ctx}/images/common/ts_07.gif" width="9" height="9" alt=""></td>
		<td height="9" valign="bottom" background="${ctx}/images/common/ts_08.gif"> </td>
		<td>
			<img src="${ctx}/images/common/ts_09.gif" width="10" height="9" alt=""></td>
	</tr>
</table>
</div>
</body>
</html>